package com.jiazhong.ssm.test01整合.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.*;

/**
 * @Auther:shuXin
 */
@Configuration
@EnableWebMvc
@ComponentScan("com.jiazhong.ssm.test01整合.controller")
public class WebMvcJavaConfig implements WebMvcConfigurer {
    @Override
    public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) {
        configurer.enable();
    }
    @Override
    public void configureViewResolvers(ViewResolverRegistry registry) {
        registry.jsp("/WEB-INF/views/","jsp");
    }
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        // registry.addInterceptor(new xx()).addPathPatterns().excludePathPatterns()
    }
}
